package backend.service.impl;

import backend.dao.ProvinceAndCityDao;
import backend.service.ProvinceAndCityService;
import entities.Day_province;
import entities.ProvinceAndCity;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ProvinceAndCityServiceImpl implements ProvinceAndCityService {
    @Resource
    private ProvinceAndCityDao dao;
    @Override
    public ProvinceAndCity[] getProvinceData(String name) {
        return dao.getProvinceData(name);
    }

    @Override
    public ProvinceAndCity[] getAll() {
        return dao.getAll();
    }

    @Override
    public Day_province[] getProvinceDay() {
        return dao.getProvinceDay();
    }
}
